package createThread;

import lombok.extern.slf4j.Slf4j;

/**
 * @author wang'ji'cheng
 * @date 2025/7/4
 */
@Slf4j
public class startAndRun {
    public static void main(String[] args) {
        Thread thread = new Thread(() -> {
           log.info("子线程开始执行");
        });
        log.info("1准备创建新线程");
        //thread.start();
        thread.run();
        log.info("3主线程结束");
    }
}
